package com.goldgov.information.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.goldgov.information.dao.CrawlerLogDao;
import com.goldgov.information.service.CrawlerLog;
import com.goldgov.information.service.CrawlerLogQuery;
import com.goldgov.information.service.CrawlerLogService;
@Service
public class CrawlerLogServiceImpl implements CrawlerLogService {

	@Autowired
	CrawlerLogDao crawlerLogDao;

	@Override
	public List<CrawlerLog> getCrawlerLogList(CrawlerLogQuery query) {
		return crawlerLogDao.getCrawlerLogList(query);
	}

	@Override
	public void addCrawlerLog(CrawlerLog crawlerLog) {
		crawlerLogDao.addCrawlerLog(crawlerLog);
	}

	@Override
	public void deleteCrawlerLogByIDs(String[] ids) {
		crawlerLogDao.deleteCrawlerLogByIDs(ids);
	}

	@Override
	public void deleteCrawlerLogByRulesID(String id) {
		crawlerLogDao.deleteCrawlerLogByRulesID(id);
	}
}
